package demo1;

import java.util.Comparator;

/**
 * Created with  IntelliJ IDEA .
 * Description:
 * User: lenovo
 * Date: 2025-${ MONTH }-25
 * Time: 18:10
 */
public class AgeComparator implements Comparator<Student> {

    public int compare(Student o1,Student o2){
        return o1.age-o2.age;
    }


}
